<?php
declare (strict_types = 1);

namespace app\index\validate;

use think\Validate;

class Forget extends Validate
{
    protected $rule = [
        "mobile" => "require|mobile",
        "password" => "require|min:6|confirm",
        "captcha" => "require"
    ];

    protected $message = [
        'mobile.require' => '请输入手机号',
        'mobile.mobile' => '手机号格式有误',
        'password.require' => '请输入新密码',
        'password.min' => '新密码至少6位',
        'password.confirm' => '确认新密码不一致',
        'captcha.require' => '请输入短信验证码'
    ];
}